package com.itheima.web;


import com.itheima.pojo.Sku;
import com.itheima.service.SkuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/Sku")
public class SkuController {
    @Resource
    private SkuService skuService;

    @GetMapping("/selectA")
    public List<Sku> selectA(){
        List<Sku> list = skuService.list();
        return list;
    }


}
